#! /usr/bin/python
# Filename: rename.py

import os

files = os.listdir('./');

print 'File:',files;

for file_name in files:
	if file_name.endswith('.tx'):
		new_name = file_name.replace('.tx','.txt');
		mv_cmd = 'mv %s %s' % (file_name, new_name);  
		os.system(mv_cmd);

files = os.listdir('./');

print 'File:',files;

